package com.wugh.fast.demo.service.impl;

import com.wugh.fast.demo.consumer.BTestConsumer;
import com.wugh.fast.demo.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 说明:
 *
 * @author wugh
 * @date 2020-01-15 16:31
 */
@Service
public class TestServiceImpl implements TestService {
    @Autowired
    private BTestConsumer bTestConsumer;

    @Override
    public Object getMine() {
        return bTestConsumer.getMine();
    }

    @Override
    @Async
    public Object getMineAsync() {
        return this.getMine();
    }
}
